package cn.tedu.egmybatis1.mapper;

import cn.tedu.egmybatis1.pojo.entity.Product;
import cn.tedu.egmybatis1.pojo.vo.ProductVO1;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
//    @Insert("INSERT INTO product(id,title,price,stock) " +
//            "VALUES(#{id},#{title},#{price},#{stock})")
    int insertProduct(Product product);
    int deleteProduct(int id);

    int deleteProductByIds(List<Integer> list);
    int updateProduct(Product product);
    Product selectProduct(int id);
    List<Product> selectProduct2(int stock);
    ProductVO1 selectProduct3(int id);
    List<Product> selectAll();
    int dynamicUpdate(Product product);
    int selectcount();


}
